﻿@model SportMeetingPlanner.Models.Sport
@{
    ViewBag.Title = "Create";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="section">
    <table class="listTable" cellspacing="0">
        @using (Html.BeginForm("Create", "SportManager"))
        {
            <tr>
                <td class="headerColumn" colspan="2">
                    Create sport
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    Name
                </td>
                <td class="rightColumn">@Html.EditorFor(model => model.Name)
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    MinPlayers
                </td>
                <td class="rightColumn">@Html.EditorFor(model => model.MinPlayers)
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
                <td>
                </td>
            </tr>
            <tr class="link">
                <td class="leftColumn" colspan="2">
                    <input type="submit" value="Create" />
                </td>
            </tr>
            <tr class="back">
                <td class="leftColumn" colspan="2">
                    @Html.ActionLink("Back", "Index")
                </td>
            </tr>
        }
    </table>
</div>
